public class BitTest2 {
    private static String name = "lihua";

    {
        name = "xiaoming";
        System.out.println("非静态代码块/构造代码块/实例代码块");
    }
    static {  //只会被执行一次
        name = "jingtai";
        System.out.println("静态代码块");
    }

    public static String getName() {
        return name;
    }

    public static void setName(String name) {
        BitTest2.name = name;
    }

    public BitTest2() {
        System.out.println("无参构造方法");
    }

    public static void fun() {
        System.out.println("1235");
    }

}
